package prop

import "time"

// CacheConfig 缓存配置
type CacheConfig struct {
	Captcha KeyItem `mapstructure:"captcha"` // 验证码
	Login   KeyItem `mapstructure:"login"`   // 用户登陆
	Auth    KeyItem `mapstructure:"auth"`    // 凭证
}

type KeyItem struct {
	Prefix     string        `mapstructure:"prefix"`     // 用户登陆
	Expiration time.Duration `mapstructure:"expiration"` // 设置有效时间
}
